home *** CD-ROM | disk | FTP | other *** search
/ Gekkan Dennou Club 145 / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin / tools / sharp / sxwork2.lzh / サンプル基礎編 / 文字列入出力 / INPOUT.H < prev    next >
Text File  |  1994-03-10  |  2KB  |  54 lines

  1. /******************************************************************************
  2.  *    inpout.h:    inpout.c用ヘッダファイル
  3.  ******************************************************************************
  4.  *    Workroom SX-68K Sample Program Copyright 1994 SHARP
  5.  *
  6.  *    定数定義
  7.  */
  8. /* ウィンドウタイトル */
  9. #define WINTITLE    ((_LASCII) "\x10文字列入出力処理")
  10.  
  11. /* ウィンドウサイズ */
  12. #define WIN_H        485        /* ウィンドウの幅    */
  13. #define WIN_V        195        /* ウィンドウの高さ    */
  14.  
  15. /* テキスト入力欄の表示位置 */
  16. #define TXT_L        4        /* 左端座標        */
  17. #define TXT_T        2        /* 上端座標        */
  18. #define TXT_R        (WIN_H - 1)    /* 右端座標        */
  19. #define TXT_B        (WIN_V - 1)    /* 下端座標        */
  20.  
  21. #define CACHESIZE    4096        /* キャッシュサイズ    */
  22.  
  23. /* イベントマスク */
  24. #define EVENTMASK    (EM_MSLDOWN | EM_MSRDOWN | EM_UPDATE | EM_ACTIVATE | EM_SYSTEM1 | EM_SYSTEM2)
  25. /*
  26.  *    構造体宣言
  27.  */
  28. typedef struct ComVal {            /* 共通変数            */
  29.     Window *windowPtr;        /* ウィンドウポインタ        */
  30.     BOOLEAN activeFlag;        /* アクティブフラグ        */
  31.     TsEvent event;            /* イベントレコード        */
  32.     int eventMask;            /* イベントマスク        */
  33.     int errorCode;            /* エラーコード            */
  34.     BOOLEAN endFlag;        /* 終了フラグ            */
  35.     TEdit **tEditHdl;        /* テキストエディットハンドル    */
  36. } ComVal;
  37. /*
  38.  *    関数プロトタイプ
  39.  */
  40. /* inpout.c */
  41. BOOLEAN init(ComVal *);
  42. BOOLEAN createWindow(ComVal *);
  43. BOOLEAN createText(ComVal *);
  44. void idleEvent(ComVal *);
  45. void msLDownEvent(ComVal *);
  46. void msRDownEvent(ComVal *);
  47. void keyDownEvent(ComVal *);
  48. void updateEvent(ComVal *);
  49. void drawGraph(ComVal *);
  50. void activateEvent(ComVal *);
  51. void systemEvent(ComVal *);
  52. void showErrDialog(ComVal *);
  53. void endProc(int, ComVal *);
  54.